// import 'package:flutter/material.dart';

import '../../../lib_basemodel/user/user.dart';
import '../../../lib_user/user_manager.dart';
import '../hall/room_main/room_rtc_rtm.dart';

mixin RtmMixin {
  late RtcConfig rtmConfig;
  User? get currUser => UserManager.instance.currentUser;

  // create rtm instance and add addListener
  Future<void> initRtm() async {}

  // login rtm service
  Future<void> loginRtm(String token) async {}
  // 发消息 messages
  Future<void> publishRtm(String msg) async {}
  // 收消息 messages
  Future<void> subscribeRtm() async {}

  //  取消订阅 并且 退出 rtm
  Future<void> leaveRtmChannel() async {}
}
